﻿@using Rail.Net.Common.Resources

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>
    <link rel="shortcut icon" href="@Url.Content("~/Content/images/favicon.png")" type="image/x-icon" />

    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />

    @* DataTable CSS *@
    <link type="text/css" href="@Url.Content("~/Content/demo_table_jui.css")" rel="stylesheet" />
    <link type="text/css" href="@Url.Content("~/Content/TableTools_JUI.css")" rel="stylesheet" />

    
    @* Awesome framework - http://awesome.codeplex.com/*@   
    <link type="text/css" href="@Url.Content("~/Content/Awesome.css")" rel="stylesheet" />    

    @* Jquery and related plugins *@
    <link type="text/css" rel="stylesheet" href="@Url.Content("~/Content/jquery-ui-1.8.14.custom.css")" />	


    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js" type="text/javascript"></script>    
	<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js" type="text/javascript"></script>
    <script src="https://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
	<script src="https://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.ba-bbq.min.js")"></script>

    <script type="text/javascript" src="@Url.Content("~/Scripts/json2.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/underscore-min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/backbone-min.js")"></script>

    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.dataTables.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/TableTools.min.js")"></script>
    
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.form.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/Awesome.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/style.min.js")"></script>
</head>

<script type="text/javascript">
    $(document).ready(function () {
        $('.dataTable').dataTable({
            "bJQueryUI": true,
            "bFilter": false,
            "bSort": false,
            "bPaginate": false,
            "bInfo": false,
            "bStateSave": true,
            "oLanguage": {
                "sProcessing": "@Global.DataTable_sProcessing",
                "sLengthMenu": "@Global.DataTable_sLengthMenu",
                "sZeroRecords": "@Global.DataTable_sZeroRecords",
                "sInfo": "@Global.DataTable_sInfo",
                "sInfoEmpty": "@Global.DataTable_sInfoEmpty",
                "sInfoFiltered": "@Global.DataTable_sInfoFiltered",
                "sInfoPostFix": "@Global.DataTable_sInfoPostFix",
                "sSearch": "@Global.DataTable_sSearch",
                "sUrl": "@Global.DataTable_sUrl",
                "oPaginate": {
                    "sFirst": "@Global.DataTable_oPaginate_sFirst",
                    "sPrevious": "@Global.DataTable_oPaginate_sPrevious",
                    "sNext": "@Global.DataTable_oPaginate_sNext",
                    "sLast": "@Global.DataTable_oPaginate_sLast"
                }
            }
        });

        $('div .dataTables_wrapper div').each(function (i) {
            $(this).removeClass("ui-widget-header");
        });

        $('table tbody tr').each(function (i) {
            $(this).removeClass("ui-state-highlight");
        });
    });
</script>

<body>    
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>
                    <a href="@Request.RawUrl">
                        <img src="@Url.Content("~/Content/images/logo.png")" alt="Logo" />
                    </a>
                </h1>
                <div id="language">
                    @Html.Partial("CulturePartial")
                </div>                
            </div>            
        </div>

        <div id="main" style="width: 100;">
            @RenderBody()
            <div id="footer">
            </div>
        </div>
    </div>

    <div id="loading" style="display: none;">
        <p>
            <img src="@Url.Content("~/Content/images/ajax-loader.gif")" alt="ajax-loading" />
        </p>
        <p>
            <img src="@Url.Content("~/Content/images/railjet.jpg")" alt="train-loading" />
        </p>
    </div>
</body>
</html>
